# -*- coding: iso-8859-2 -*-

class Age:
    '''
    Age tags used in profile definition
    '''
    
    BELOW_25 = "BELOW_25"
    BELOW_35 = "BELOW_35"
    ABOVE_25 = "ABOVE_25"
    ABOVE_30 = "ABOVE_30"
    ABOVE_40 = "ABOVE_40"
    ABOVE_50 = "ABOVE_50"
    
    def value(age):
        if age == "BELOW_25":
            return 1
        elif age == "ABOVE_25":
            return 2
        elif age == "ABOVE_30":
            return 3
        elif age == "BELOW_35":
            return 4        
        elif age == "ABOVE_40":
            return 5
        elif age == "ABOVE_50":
            return 6
        
    value = staticmethod(value)
